package com.etcn.modules.statical.exponent.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.etcn.common.controller.BaseController;
import com.etcn.modules.statical.exponent.pojo.WmAreaTradeWayRate;
import com.etcn.modules.statical.exponent.service.IWmAreaTradeWayRateService;

import org.springframework.web.bind.annotation.ResponseBody;
import com.etcn.common.annotation.Manage;

/**
 * 实体controller
 * @author guozc
 * @date: 2018-01-14 19:59:14
 */
@Controller
@RequestMapping("/API1.0/WmAreaTradeWayRate")
public class WmAreaTradeWayRateController extends BaseController {

	@Autowired
    private IWmAreaTradeWayRateService wmAreaTradeWayRateService;

     /**
     * 根据id查询实体
     */
    @Manage
    @RequestMapping(value = "getById", method = RequestMethod.GET)
    public @ResponseBody Object getById(WmAreaTradeWayRate wmAreaTradeWayRate) throws Exception{
    	return wmAreaTradeWayRateService.getById(wmAreaTradeWayRate.getId());
    }
    
}